package com.pzl.mapper;

import com.pzl.entity.User;

import java.util.List;

/**
 * UserDao class
 *
 * @Author panzhenglei
 * @Date 2019/6/8 6:39 PM
 */
public interface UserDao {
    public List<User> findAll()throws Exception;

    /* private Long id;
    private String username;
    private String email;
    private String password;
    private String phoneNum;
    private List<Role> roles;*/

    public int save(User user);

    public int saveUserRole(User user,Long[] roleIds);

    public Long findUserId();


    public User findOne(Long id);

    public int update(User user);

}
